<?php require_once 'top.php';?>
<?php require_once 'banner.php';?>
<script type="text/javascript">
<!--

function checkreg()
{
	 var tbnikename = $('#tbnikename').val();
	  $.post("register/checkusername",{tbnikename:tbnikename},function(result){
		    if(result > 0){
		    	changebackgrond('tbnikename','red');
		    }else{
		    	changebackgrond('tbnikename','white');
		    }
		});
}

//验证是否为空
function verifyIsNull(info_span,str){
	var flag = false;
	if(str == ""){
		//info_span.innerHTML = "对不起，您输入的内容为空。";
		alert('对不起，您输入的内容为空。');
		flag = true;
	}
	return flag;
}
//验证qq号码
function verifyQQ(){
	var strQQ = $('#qq').val();
		
	var reg = /^[1-9]\d{4,8}$/;
	qq_Flag = reg.test(strQQ);
	if(qq_Flag){
		return true;
	}else{
		changebackgrond('qq','red');
		return false;
	}
}

//验证邮箱
function verfifyEmail(){
	var email = $('#tbemail').val();
	var reg = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/;
	email_Flag = reg.test(email);
	if(email_Flag){
		return true;
	}else{
		
		changebackgrond('tbemail','red');
		return false;
	}
}

function changebackgrond(id,color)
{
	var item = '#'+id;
	$(item).css('background',color);
}

//submit form
function submitform()
{
	//verifyQQ();
	//verfifyEmail();
	if(verifyQQ() && verfifyEmail()){
		document.form1.submit();
	}
}
//-->
</script>
        <div id="location">当前位置：首 页</div>
        <div class="mainbox clearfix">
            <div class="mleft">
                <div id="focus">
                    <h2>最新共享</h2>
                    <div class="focusimg"><a href="#"><img src="images/focus.jpg" width="722" height="407" alt="d" /></a></div>
                </div>
            </div>
            <div class="mright">
              <div class="mrbox">
                     <h2></h2>
                     <div class="mrcon">
                          <ul class="rlink">
                              <li class="r1"><a href="#">白酒类包装</a></li>
                              <li class="r2"><a href="#">果酒类包装</a></li>
                              <li class="r3"><a href="#">其它酒类包装</a></li>
                              <li class="r4"><a href="#">月饼类包装</a></li>
                              <li class="r5"><a href="#">茶叶类包装</a></li>
                              <li class="r6"><a href="#">其它类包装</a></li>
                          </ul>
                          <div class="uplink"><a href="#"><img src="images/uploadbtn.gif" width="154" height="39" alt="upload" /></a></div>
                  </div>
                </div>
          </div>
        </div>
        <div class="rollbox">
            <ul id="mycarousel" class="jcarousel-skin-tango">
              <?php foreach( $chuangzuo as $ck => $cv){?>
                 <li><a href="#"><img src="<?php echo site_url('upload/smallpic')?>/<?=$cv['filesmallimg']?>" width="230" height="157" alt="d" /></a></li>
             <?php }?>
            </ul>
      </div>
      <div class="mainbox clearfix">
           <div class="mleft">
               <div class="indexwork">
                    <h2>共享作品</h2>
                    <div class="indexworkcon">
                         <ul class="wlist clearfix">
                         <?php foreach( $share as $sk => $sv){?>
                              <li><a href="item/index/<?=$sv['id']?>" class="wpic"><img src="<?php echo site_url('upload/smallpic')?>/<?=$sv['filesmallimg']?>" width="230" height="157" alt="d" /></a><h5><a href="#"><?=$sv['filename']?></a></h5><div class="winfo">大小<?=$sv['daxiao']?>    格式<?=$sv['geshi']?>     瞄币28</div></li>
                        <?php }?>
                         </ul>
                    </div>
                    <div class="pages">
                        <a href="#" class="first">&nbsp;</a>
                        <a href="#" class="pre">&nbsp;</a>
                        <a href="#">1</a><a href="#">2</a><a href="#">3</a><a href="#">4</a><a href="#">5</a><a href="#">6</a><a href="#">7</a><a href="#">8</a><a href="#">9</a><a href="#">10</a><a href="#" class="next">&nbsp;</a><a href="#" class="end">&nbsp;</a>
                    </div>
               </div>
           </div>
           <div class="mright">
               <div class="mrbox mb10">
                    <h2><span class="title">关键词搜索</span></h2>
                    <div class="mrs">
                         <ul class="mrlist">
                           <li><input name="" type="checkbox" value="" /> 酒包装</li>
                              <li><input name="" type="checkbox" value="" /> 酒包装</li>
                              <li><input name="" type="checkbox" value="" /> 酒包装</li>
                              <li><input name="" type="checkbox" value="" /> 酒包装</li>
                              <li><input name="" type="checkbox" value="" /> 酒包装</li>
                              <li><input name="" type="checkbox" value="" /> 酒包装</li>
                              <li><input name="" type="checkbox" value="" /> 酒包装</li>
                              <li><input name="" type="checkbox" value="" /> 酒包装</li>
                              <li><input name="" type="checkbox" value="" /> 酒包装</li>
                              <li><input name="" type="checkbox" value="" /> 酒包装</li>
                              <li><input name="" type="checkbox" value="" /> 酒包装</li>
                              <li><input name="" type="checkbox" value="" /> 酒包装</li>
                              <li><input name="" type="checkbox" value="" /> 酒包装</li>
                              <li><input name="" type="checkbox" value="" /> 酒包装</li>
                              <li><input name="" type="checkbox" value="" /> 酒包装</li>
                              <li><input name="" type="checkbox" value="" /> 酒包装</li>
                              <li><input name="" type="checkbox" value="" /> 酒包装</li>
                              <li><input name="" type="checkbox" value="" /> 酒包装</li>
                              <li><input name="" type="checkbox" value="" /> 酒包装</li>
                              <li><input name="" type="checkbox" value="" /> 酒包装</li>
                         </ul>
                      <div class="sop"><input name="" type="button" class="ssbtn" value="搜索" /></div>
                    </div>
               </div>
               <div class="rad"><a href="#"><img src="images/rad.gif" width="243" height="179" alt="d" /></a></div>
        </div>
      </div>
    </div>
    <div id="footer"><p>Copyright © 2007-2012 NiPic.com All Rights Reserved 版权所有·瞄图网 包装设计资源共享平台 粤ICP备8828882号</p></div>
</div>
<div class="jqmWindow" id="dialog">
<div class="popbox">
    <div class="poptitle">请仔细、如实填写您的真实资料，当发生侵权或交易纠纷时有利于维权，瞄图网将对您填写的资料进行严格保密。 <span class="close jqmClose"></span></div>
    <div class="popcon clearfix">
    <form name="form1" method="post" action="register">
        <div class="regleft">
             <h2><span class="regtitle">会员注册</span></h2>
             <div class="rztip">
                 <p class="tn65">瞄图网对未进行身份认证的注册会员</p>
                 <p class="tn65">仅提供“共享”模块的相关网络服务,</p>
                 <p class="tn65">“创作”模块的网络服务,需会员提交</p>
                 <p>身份认证，待审核通过后提供相关服务。</p>
             </div>
             <div class="regcon">
                 <ul class="reglist">
                      <li><div class="input"><label>用户名</label> <input name="tbnikename" type="text" class="ntxt" id='tbnikename'/><input name="" type="button" class="jcbtn" value="检测账户" onclick="checkreg();"/></div> <span class="error"></span></li>
                      <li><div class="input"><label>密码</label> <input name="tbpassword" type="password" class="ntxt" style="width:185px;" /></div></li>
                      <li><div class="input"><label>确认密码</label> <input name="repassword" type="password" class="ntxt" style="width:160px" /></div></li>
                      <li><div class="input"><span class="pw1">弱</span><span class="pw2">中</span><span class="pw3">强</span></div></li>
                      <li><div class="input"><label>腾讯QQ号码</label> <input name="qq" type="text" class="ntxt" style="width:150px;" id="qq"/></div></li>
                      <li><div class="input"><label>电子邮箱</label> <input name="tbemail" type="text" class="ntxt" style="width:160px" id="tbemail"/></div></li>
                      <li><div class="input1"><label>验证码</label> <input name="vcode" type="text" class="ntxt" style="width:58px;" /></div> </li>
                      <li><div class="input"><span class="msbg">《服务协议》《委托代收代付款协议》</span></div></li>
                      <li><input name="" type="button" value="同意以上条例进行注册" class="regbtn" onclick="submitform();"/></li>
                 </ul>
             </div>
        </div>
        <input type="hidden" name="tbtype" value="1"/>
        </form>
        <form name="form2" method="post" action="">
        <div class="regright">
             <h2><span class="rztitle">个人认证</span></h2>
             <div class="regcon">
                 <ul class="reglist">
                      <li><div class="input"><label>姓名：</label><input name="" type="text" class="ntxt" style="width:178px" /> </div></li>
                      <li><div class="input"><label>身份证号码：</label><input name="" type="text" class="ntxt" style="width:140px" /></div></li>
                      <li><div class="input"><label>身份证电子版</label> <input name="" type="button" value="选择文件" class="selectbtn" /> <input name="" type="text" class="select_input" /> <input name="" type="button" class="selectbtn1" value="上传" /></div></li>
                 </ul>
                 <div class="mttip">
                       <p><a href="#">《瞄图网规则》</a><a href="#">《创作作品审查规则》</a></p>
                       <p><a href="#">《签约创作会员及独家创作会员协议》</a></p>
                 </div>
                 <ul class="reglist">
                      <li><a href="#" class="readlink">阅读并同意以上协议</a> <input name="" type="button" class="submit" value="提交审核" /></li>
                 </ul>
             </div>
             <h2><span class="comtitle">企业认证</span></h2>
             <div class="regcon">
                 <ul class="reglist">
                      <li><div class="input"><label>企业机构名称：</label><input name="" type="text" class="ntxt" style="width:128px" /> </div></li>
                      <li><div class="input"><label>营业执照编号：</label><input name="" type="text" class="ntxt" style="width:128px" /></div></li>
                      <li><div class="input"><label>执照电子版</label> <input name="" type="button" value="选择文件" class="selectbtn" /> <input name="" type="text" class="select_input" style="width:43px" /> <input name="" type="button" class="selectbtn1" value="上传" /></div></li>
                 </ul>
                 <div class="mttip">
                       <p><a href="#">《瞄图网规则》</a><a href="#">《创作作品审查规则》</a></p>
                       <p><a href="#">《签约创作会员及独家创作会员协议》</a></p>
                 </div>
                 <ul class="reglist">
                      <li><a href="#" class="readlink">阅读并同意以上协议</a> <input name="" type="button" class="submit" value="提交审核" /></li>
                 </ul>
             </div>
        </div>
        <input type="hidden" name="tbtype" value="2"/>
        </form>
    </div>
</div>
</div>
<div id="botbg"></div>
</body>
</html>
